package com.usth.service;

import java.util.List;

import com.usth.dao.IUserDao;
import com.usth.model.Roles;
import com.usth.model.SearchVO;
import com.usth.model.User;

public class UserServiceImpl implements IUserService {
	private IUserDao userdao;

	public IUserDao getUserdao() {
		return userdao;
	}

	public void setUserdao(IUserDao userdao) {
		this.userdao = userdao;
	}

	public boolean regist(User user) {
		return userdao.regist(user);
	}

	public User userlogin(User user) {
		return this.userdao.userlogin(user);
	}

	public List<User> ulist() {
		return this.userdao.ulist();
	}

	public List<Roles> rolelist() {
		return this.userdao.rolelist();
	}

	public void userrole(User u) {
		this.userdao.userrole(u);
	}

	public void userupdate(User u) {
		this.userdao.userupdate(u);
	}

}
